import request from './request'
import { useUserStore } from '../store/modules/user'
// 获取工单归档列表
export function getOrderArchivedList(data) {
  const token = {
    'access-token': useUserStore().token,
  }
  return request({
    url: '/work/order/getOrderArchivedList',
    method: 'post',
    headers: token,
    data,
  })
}

//工单归档
export function orderArchived(data) {
  const token = {
    'access-token': useUserStore().token,
  }
  return request({
    url: '/work/order/orderArchived',
    method: 'post',
    headers: token,
    data,
  })
}
//获取归档列表状态数量
export function getOrderArchivedStatusQty() {
  const token = {
    'access-token': useUserStore().token,
  }
  return request({
    url: '/work/order/getOrderArchivedStatusQty',
    method: 'get',
    headers: token,
  })
}
